package com.example.cash.craft.dao.persist.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.cash.craft.pojo.entity.Product;
import com.example.cash.craft.pojo.vo.ProductVO;

import java.util.List;

public interface ProductMapper extends BaseMapper<Product> {

    int countByCategoryId(Long categoryId);

    ProductVO selectById(Long id);

    List<ProductVO> listAll();

    List<ProductVO> listByCategoryId(Long categoryId);

}
